<% if @user.errors.empty? %>
  $('<%= '#user-opts-' + @user.id.to_s %>').replaceWith( $('<%= j(render partial: 'user_workflow_operations', locals:{user: @user}) %>') )
<% else %>
  
<% end %>
